<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Alterar Artista</title>
        <script src="../midia/scripts/mascaras.js"></script>
    </h:head>       
    <h:body>
        <ui:include src="../layout/menu.xhtml" />
        <div id="corpo">
            <f:view>
                <h:form>
                    <fieldset>
                        <legend>Artista: #{artistaBean.artista.nome}</legend>
                        <h:inputHidden value="#{artistaBean.artista.codigo}"></h:inputHidden>
                        <h:panelGrid columns="2" id="panel">  
                            <h:outputLabel for="nome" value="Nome *" />  
                            <h:inputText id="nome" value="#{artistaBean.artista.nome}">  
                            </h:inputText>  

                            <h:outputLabel for="telefone" value="Telefone *" />  
                            <h:inputText id="telefone" onkeypress="mascara(this, mascaraTelefone)" maxlength="15" value="#{artistaBean.artista.telefone}">  
                            </h:inputText>  
                            
                            <h:commandButton value="Alterar" action="#{artistaBean.alterar}"></h:commandButton>
                            <h:commandButton value="Voltar" action="consultarartista.xhtml" immediate="true"></h:commandButton>
                        </h:panelGrid>
                    </fieldset>
                </h:form>
            </f:view>
        </div>
        <ui:include src="../layout/rodape.xhtml" />
    </h:body>
</html>